/*
 * Instruction11.java
 *
 * Created on March 22, 2007, 8:45 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package moto9s12sim;

/**
 *
 * @author Fergus Earnshaw
 */
public class Instruction11 extends Instruction{
    
    /** Creates a new instance of Instruction11 */
    public Instruction11() {
    
        this.strAssemblyCode = "EDIV";
        this.bCodes = new byte[1];
        this.bCodes[0] = (byte)Integer.parseInt("11",16);
    }
    
    public boolean excute(M9S12 cpu)
    {
        this.shAddr = cpu.PC.getRegister();
        cpu.PC.inc();
        
        //TO DO CODE INSTRUCTION
        
        //set flags
        //TO DO code last two flags
        //cpu.CC.setN();
        //cpu.CC.setZ();
        //cpu.CC.setV();        
        //cpu.CC.setC();

        
        printInstruction(cpu);
        //I think the first invalid instruction should halt excution
        return true;
    }  
}
